package com.zhijiang.hospital.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhijiang.hospital.entity.InpatientOperationData;
import com.zhijiang.hospital.entity.dto.InpatientOperationDataDto;
import com.zhijiang.util.BaseQuery;
import com.zhijiang.util.PageList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 75936
 * @version 1.0
 * @project zhijiang_hospital-data
 * @description
 * @date 2022-10-25 10:19:47
 */
@Mapper
@DS("master")
public interface InpatientOperationDataMapper extends BaseMapper<InpatientOperationData> {


    List<InpatientOperationDataDto> loadAll();

    InpatientOperationData loadOne(String id);


    PageList findAllByPage(BaseQuery baseQuery);

    List<InpatientOperationData> loadPatientNumberOfDay();

    List<InpatientOperationData> loadPatientNumberOfMonth();

    List<InpatientOperationData> loadPatientNumberOfYear();

    @Select("select *from COM_INPATIENT_OPERATION_DATA")
    List<InpatientOperationData> selectAll();

    void addBeach(@Param("list") List list);

    void addOneE(@Param("inpatientOperationData") InpatientOperationData inpatientOperationData);
}
